home *** CD-ROM | disk | FTP | other *** search
- property skillLevel, button, blank1, blank2, blank3, ansBlank1, ansBlank2, ansBlank3
-
- on new me
- set the button of me to [#challenge: EMPTY, #more: EMPTY, #most: EMPTY]
- set the blank1 of me to [#challenge: 0, #more: #empty, #most: #empty]
- set the blank2 of me to [#challenge: 0, #more: #empty, #most: #empty]
- set the blank3 of me to [#challenge: 0, #more: #empty, #most: #empty]
- set the ansBlank1 of me to [#challenge: 0, #more: 0, #most: 0]
- set the ansBlank2 of me to [#challenge: 0, #more: 0, #most: 0]
- set the ansBlank3 of me to [#challenge: 0, #more: 0, #most: 0]
- return me
- end
-
- on setModule me, thisModule
- set the skillLevel of me to thisModule
- end
-
- on setButton me, buttonclicked
- setProp(the button of me, the skillLevel of me, buttonclicked)
- end
-
- on setBlanks me, state1, state2, state3
- setProp(the blank1 of me, the skillLevel of me, state1)
- setProp(the blank2 of me, the skillLevel of me, state2)
- setProp(the blank3 of me, the skillLevel of me, state3)
- end
-
- on setOneBlank me, blank, state1
- setProp(blank, the skillLevel of me, state1)
- end
-
- on getOneBlank me, blank
- return getProp(blank, the skillLevel of me)
- end
-
- on getModule me
- set curModule to the skillLevel of me
- return curModule
- end
-
- on getBlank1 me
- set blank to getProp(the blank1 of me, the skillLevel of me)
- return blank
- end
-
- on getBlank2 me
- set blank to getProp(the blank2 of me, the skillLevel of me)
- return blank
- end
-
- on getBlank3 me
- set blank to getProp(the blank3 of me, the skillLevel of me)
- return blank
- end
-
- on getButton me
- set buttClicked to getProp(the button of me, the skillLevel of me)
- return buttClicked
- end
-
- on showProperties me
- put "skillLevel:" && the skillLevel of me
- put "button:" && the button of me
- put "blank1:" && the blank1 of me
- put "blank2:" && the blank2 of me
- put "blank3:" && the blank3 of me
- end
-